import request from "@/utils/request"

export function listCommon() {
    return request({
        url: "/tea/pcommon/list",
        method: "get",
        params: {
            pageNum: 1,
            pageSize: 100
        }
    })
}

export function listScreen() {
    return request({
        url: "/tea/screen/list",
        method: "get",
        params: {
            pageNum: 1,
            pageSize: 100
        }
    })
}

export function listRoom() {
    return request({
        url: "/tea/room/list",
        method: "get",
        params: {
            pageNum: 1,
            pageSize: 100
        }
    })
}

export function listHomestay() {
    return request({
        url: "/tea/homestay/list",
        method: "get",
        params: {
            pageNum: 1,
            pageSize: 100
        }
    })
}

export function listLibrary() {
    return request({
        url: "/tea/library/list",
        method: "get",
        params: {
            pageNum: 1,
            pageSize: 100
        }
    })
}

export function listActivity(type = 0) {
    return request({
        url: "/tea/activity/list",
        method: "get",
        params: {
            pageNum: 1,
            pageSize: 100,
            type: type
        }
    })
}

export function getActivity(query) {
    return request({
        url: "/tea/activity/" + query,
        method: "get"
    })
}


export function getRoom(query) {
    return request({
        url: "/tea/room/" + query,
        method: "get"
    })
}

export function getHomestay(query) {
    return request({
        url: "/tea/homestay/" + query,
        method: "get"
    })
}

export function getLibrary(query) {
    return request({
        url: "/tea/library/" + query,
        method: "get"
    })
}

export function getScreen(query) {
    return request({
        url: "/tea/screen/" + query,
        method: "get",
    })
}